<template>
    <div>
        在线成员列表
        <div v-for="(item, _index) in onlineInfos" :key="_index">
            {{item.name}}({{item.ip}})
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            onlineInfos: []
        }
    },
    mounted() {
        this.Api_put('/online');
        this.Api_get('/online').then(res => {
            console.log(res);
            this.onlineInfos = res;
        })
    }
}
</script>

<style>

</style>